package com.qcby.dao;

import com.qcby.common.ExamDetail.SaveScore;
import com.qcby.entity.ErrorCollection;
import com.qcby.entity.Exam;
import com.qcby.entity.QuestionBank;
import com.qcby.entity.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ExamDetailDao {

    Exam loadExamInfo(int id);

    List<QuestionBank> loadMultipleChoiceQuestions(int e_id);

    List<QuestionBank> loadFillInTheBlankQuestions(int e_id);

    List<QuestionBank> loadingTrueOrFalseQuestions(int e_id);

    List<QuestionBank> loadShortAnswerQuestions(int e_id);

    List<QuestionBank> loadingCalculationQuestions(int e_id);

    int updateExamScore(SaveScore info);

    void insertToErrorCollection(ErrorCollection error);

    Student getStudentInfoByName(String studentName);
}
